<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:plcf="http://www.powerlogic.com.br/plcf"
	xmlns:plct="http://www.powerlogic.com.br/plct"
	xmlns:tr="http://myfaces.apache.org/trinidad"
	xmlns:trh="http://myfaces.apache.org/trinidad/html">
	

	<c:set var="urlEventoImpressao" value="/f/fcls/geralImpressao.xhtml"/>
	
	<c:if test="#{not empty urlIconeBase}">
		<c:set var="urlIconeEstiloImprimir" value="background-image: url('#{request.contextPath}/res-plc/midia/form-imp.png'); background-repeat: no-repeat; padding-left: 5px; width: 20px; background-color: transparent; padding:0; border: 0;"/>
	</c:if>
	
	<!-- TODO Somente imprime a pagina, ja que a impressao de painel nao esta funcionado. On click anterior  onclick="janelaPainel(document.getElementById('imprimir')); return false" -->
	<a onclick="setBotaoAcao(getBotaoArray('IMPRIMIR'));chamarImpressao('#{request.contextPath}/f/fcls/geralImpressao.xhtml?evento=#{jCompanyResources['jcompany.evt.imprimir']}&amp;impIntel=S',document.title,'impressao');" href="#">
		<img class="plc-icone-acao-fixo" style=" border: 0pt;" src="#{request.contextPath}#{urlIconeBase}/form-imp.png" title='#{jCompanyResources["jcompany.opcoes.impressao"]}'/>
	</a>
	
	<div id="plc-imprimir" class="plc-painel" style="visibility: hidden">
	<h1 style="text-align:center;">#{jCompanyResources['jcompany.painelimprimir.titulo']}
		<span class="fechar" onclick="janelaPainel(document.getElementById('plc-imprimir'));">X</span>
	</h1>
	
	<h2>#{jCompanyResources['jcompany.painelimprimir.formulario.preview.texto']}</h2>
	<p>#{jCompanyResources['jcompany.painelimprimir.formulario.preview.texto.detalhes']}</p>
	<input type="button"
		value="#{jCompanyResources['jcompany.painelimprimir.imprimir']}"
		onclick="chamarImpressao('#{request.contextPath}#{urlEventoImpressao}?impIntel=S',document.title,'impressao');"/>
	
	<h2>#{jCompanyResources['jcompany.painelimprimir.formulario.preview']}</h2>
	<p>#{jCompanyResources['jcompany.painelimprimir.formulario.preview.detalhes']}</p>
	<input type="button"
		value="#{jCompanyResources['jcompany.painelimprimir.imprimir']}"
		onclick="chamarImpressao('#{request.contextPath}#{urlEventoImpressao}?impIntel=N',document.title,'impressao');"/>
	
	<h2>#{jCompanyResources['jcompany.painelimprimir.formulario.direto']}</h2>
	<p>#{jCompanyResources['jcompany.painelimprimir.formulario.direto.detalhes']}</p>
	<input type="button"
		value="#{jCompanyResources['jcompany.painelimprimir.imprimir']}"
		onclick="janelaPainel(document.getElementById('imprimir')); imprimirDireto();"/>
	</div>
	
	<script type="text/javascript">
	function imprimirDireto(){
		window.print(document);
	}
	</script>
</ui:composition>